#include <stdio.h>
#include <stdlib.h>
#include "list.h" // 请不要删除，否则检查不通过

void del_dupnum(SeqList *L)  {
    ElemType *data = L -> elem;
    int p0 = -1, pre = data[0] - 1;
    for(int i=0;i<=L->last;i++) {
        if(data[i] == pre) continue;
        data[++p0] = data[i];
        pre = data[i];
    }
    L -> last = p0;
}